package org.sn.jdish.designmode.factory;

/**
 * 普通工厂（反射）
 * 
 * @author snzigod@hotmail.com
 *
 */
public class ReflectSimpleShirtFactory {

	public ShirtProducer produce(String shirtType)
			throws ClassNotFoundException, InstantiationException, IllegalAccessException {
		Class<?> ShirtProducer = Class.forName(shirtType);
		return (ShirtProducer) ShirtProducer.newInstance();
	}

}
